<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('sentence-segment', 'SentenceSegmentRecordController');
    $router->get('first', 'SentenceSegmentRecordController@first');
    $router->get('second', 'SentenceSegmentRecordController@second');
    $router->get('third', 'SentenceSegmentRecordController@third');
    $router->get('four', 'SentenceSegmentRecordController@four');
    $router->get('five', 'SentenceSegmentRecordController@five');
    $router->resource('segment-sentence', 'SegmentSentenceRecordController');
    $router->resource('translate-language', 'TranslateLanguageController');
    $router->resource('translate-type', 'TranslateTypeController');

});
